if (typeof ext == 'undefined') var ext = {};
ext.Sample = {

id: 'org.Twibo.sample',

name: '测试',

description: '扩展测试.',

icon: 'icon.png',

on_add_tweets:
function on_add_tweets(tweets, container) {
    // just for debug.
    hotot_log('Test',
        'Update ['+container.pagename+'], '+ tweets.length +' items');
},

load:
function load () {
    ext.register_listener(ext.ADD_TWEETS_LISTENER_AFTER
        , ext.Sample.on_add_tweets);
},

unload:
function unload() {
    ext.unregister_listener(ext.ADD_TWEETS_LISTENER_AFTER
        , ext.Sample.on_add_tweets);
},

}

